package com.usian.article.controller.v1;

import com.usian.article.ApArticleControllerApi;
import com.usian.article.service.ApArticleService;
import com.usian.model.article.pojo.ApArticle;
import com.usian.model.common.dtos.ResponseResult;
import com.usian.model.common.enums.AppHttpCodeEnum;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RequestMapping("/article/api/v1/article")
@RestController
public class ApArticleController implements ApArticleControllerApi {
    @Autowired
    private ApArticleService apArticleService;
    @PostMapping("/saveApArticle")
    @Override
    public ApArticle saveApArticle(ApArticle apArticle) {
         apArticleService.save(apArticle);
         return apArticle;
    }
}
